package com.feiyun.erp.mapper;

import com.feiyun.erp.entity.Functions;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xray
 * @since 2021-05-03
 */
public interface FunctionsMapper extends BaseMapper<Functions> {

    /**
     * 查询所有权限
     * @return
     */
    List<Functions> selectAllFunctions();

    /**
     * 按角色id查询权限
     * @param roleId
     * @return
     */
    List<Functions> selectFunctionsByRoleId(String roleId);
}
